<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<script type="text/javascript" src="./dist/jquery-3.2.1.js"></script>
	<script type="text/javascript" src="./dist/js/bootstrap.js"></script>
	<link rel="stylesheet" type="text/css" href="./dist/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="./font/iconfont.css">
	<title></title>
</head>
<style type="text/css">
	*{margin:0;padding:0;}
	.navbar-fixed-top{padding-right:20px;}
	body{padding-top:50px;}
</style>
<body>
<div class="container">
	<h1 class='page-header'>课程设计导航条</h1>
	<nav class='navbar navbar-inverse navbar-fixed-top'>
		<div class="container">
		<div class='navbar-header'>
			<!-- 设计公司图标LOGO -->
			<a href="" class='navbar-brand'>
				<img src="./picture/one.jpg" height='100%'>
			</a>
			<button class='navbar-toggle collapsed' data-toggle='collapse' data-target='#mynavbar'>
				<span class='icon-bar'></span>
				<span class='icon-bar'></span>
				<span class='icon-bar'></span>
			</button>
		</div>

		<div id='mynavbar' class='collapse navbar-collapse'>
			<ul class='nav navbar-nav'>
				<li><a href="" class='active'>第一项</a></li>
				<li><a href="">第二项</a></li>
				<li><a href="">第三项</a></li>
				<li><a href="">第四项</a></li>
				<!-- 下拉菜单 -->
				<li class='dropdown'>
					<a href="" class='dropdown-toggle' data-toggle='dropdown'>
						<span>网站示例 <span class='caret'></span></span>
					</a>
					<ul class='dropdown-menu'>
						<li><a href="">第一项</a></li>
						<li><a href="">第一项</a></li>
						<li><a href="">第一项</a></li>
						<li><a href="">第一项</a></li>
					</ul>
				</li>
			</ul>
			<!-- 文本右浮动 -->
			<ul class='nav navbar-nav navbar-right'>
				<li><a href="">right</a></li>
			</ul>
			<!-- 表单格式 -->
			<form class='navbar-form navbar-right'>
				<div class="form-group  has-success has-feedback">
					<input type="text" class="form-control">
					<span class='glyphicon glyphicon-user form-control-feedback'></span>
				</div>
				<div class="form-group">
					<button class='btn btn-default'><span class='glyphicon glyphicon-search'></span></button>
				</div>
			</form>
			<!-- 按钮格式 -->
			<button type='button' class='btn btn-info navbar-btn' >搜索</button>
			<!-- 文本格式 -->
			<p class='navbar-text'>请搜索请<a href="" class='navbar-link navbar-right'>点击 </a></p>
		</div>
		</div>
	</nav>
</div>
</body>
<script type="text/javascript">
	$('li').mouseenter(function(){
		$(this).addClass('active');
		$('li').not($(this)).removeClass('active');
	});
</script>
</html>